package com.sxhalo.fsms.service;

import com.sxhalo.fsms.domain.DeviceAlarmRecord;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface IDeviceAlarmRecordService extends IBaseService<DeviceAlarmRecord> {
    //报警趋势数据
    List<Map<String,Integer>> GetalarmTrendStatistics(Integer type);
    //报警数量
    Map<String,Integer> getAramNumStatistics();
    //报警分类
    List<Map<String,Integer>> getAramTypeNum(String where);

    //报警分类列表数据

    List<Map<String,Object>> getAramTypeNumByArea(String time);
    
    int getSearchCount(String where);

    int foreachInsert(List<DeviceAlarmRecord> list);


    //首页运行状态 报警设备个数
    List<Map<String,Integer>> getDeviceRunstateCount(Integer areaId);

    int batchUpdateByWhere(DeviceAlarmRecord record,String where);


    void maintenanceIntervalAram();
    int deleteByWhere(String where);
}
